package proxy.source;

/**
 * @author Chen Guang
 * @date 2019/3/29 0029 下午 16:21
 */
public class Proxy implements Subject{

    private RealSubject realSubject;

    @Override
    public void request() {
        if(realSubject == null){
            realSubject = new RealSubject();
        }
        realSubject.request();
    }
}
